#ifndef AUDIOPLAYER_H
#define AUDIOPLAYER_H
#include <jni.h>

class AudioPlayer {
public:
	virtual bool init(JNIEnv * env, unsigned int rate, int bits, int channels) = 0;
	virtual void destroy(JNIEnv * env) = 0;

	virtual void start(JNIEnv * env) = 0;
	virtual void stop(JNIEnv * env) = 0;
	virtual void pause(JNIEnv * env) = 0;
	virtual void play(JNIEnv * env, void *data, int size) = 0;
};

extern "C" {
	AudioPlayer * createPlayer();
}

#endif

